package com.mygdx.game;

import com.badlogic.gdx.Screen;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);

        int nums[]={1,2,3,1,1,3};
        int count=0;
        for (int i=0;i< nums.length;i++){
             for (int j=0;j<nums.length;j++){
             if (nums[i]==nums[j] && i<j) {
                  count++;
             }
             }
         }
        System.out.println("count: "+count);
        }

    }

